<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>登录</title>
<link rel="stylesheet" href="user_login.css">

<script type="text/javascript">
function foo(){
	if(myform.name.value==""){
 		alert("请输入账号");
 		myform.name.focus();
 		return false;
 	}
 	if (myform.pwd.value==""){
 		alert("请输入密码");
 		myform.pwd.focus();
 		return false;
 	}
 	if (myform.yzm.value==""){
 		alert("请输入验证码");
 		myform.yzm.focus();
 		return false;
 	}
}
</script>
</head>

<body>
	<form action="user_login.php" method="post"  onsubmit="return foo();" name="myform">
	<div class="content">
		<div class="login">
			<div class="title">酒店用户登录</div>
			<div class="locon">
				<div class="line">
					<img class="smallImg" src="../img/1.png">	
					<input placeholder="请输入账号" type="text" class="number" id="name" name="user_name">
				</div>
				<div class="line">
					<img class="smallImg" src="../img/2.png">
					<input placeholder="请输入密码" type="password" class="number"  id="pwd" name="password">
				</div>
				<div class="line" >
					<img class="smallImg" src="../img/3.png">
					<input placeholder="请输入验证码" type="text" class="number1" id="yzm" name="yzm">
					<div class="number2">
						<img id="captcha_img" src="yanzhengma.php" width="120" height="30">
						<a href="javascript:void(0)" onclick="document.getElementById('captcha_img').src='yanzhengma.php'">看不清？</a>
					</div>
				</div>
				
				<button  class="logBut" ">登陆</button>
				<p><a href="user_registered.html">注册</a></p>
			</div>
		</div>
	</div>
	</form>

</body>

</html>